package com.youi.shop.config;


import org.springframework.boot.context.properties.ConfigurationProperties;

/**
 * 属性配置映射类
 * prefix：指定配置文件中配置参数的前缀
 * 例子：
 *      myTest:
 *        swagger:
 *          title: 用户中心
 *          api-base-package: com.cawbutler.swagger  //扫描的包路径
 */
@ConfigurationProperties(prefix = "mytest.swagger")
public class SwaggerProperties {

    private String title = "中国好电商api";

    /**
     * 生成接口文档扫描Controller包路径
     */
    private String apiBasePackage;

    /**
     * swagger接口测试页面的描述
     */
    private String description = "中国好电商api测试接口";

    /**
     * 更新条款URL
     */
    private String termsOfServiceUrl;

    private String version;

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getApiBasePackage() {
        return apiBasePackage;
    }

    public void setApiBasePackage(String apiBasePackage) {
        this.apiBasePackage = apiBasePackage;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public String getTermsOfServiceUrl() {
        return termsOfServiceUrl;
    }

    public void setTermsOfServiceUrl(String termsOfServiceUrl) {
        this.termsOfServiceUrl = termsOfServiceUrl;
    }

    public String getVersion() {
        return version;
    }

    public void setVersion(String version) {
        this.version = version;
    }
}